package com.wynn.service;

import com.wynn.pojo.Bom;
import com.wynn.pojo.Product;
import com.wynn.pojo.Result;

import java.util.List;

public interface ProductService {

    public Result selectAll();

    public void add(Product product) throws Exception;

    public void delete(int id) throws Exception;

    public void edit(Product product) throws Exception;

    public Result search(String productModel);

    public List<Bom> bom();

    public void bomAdd(Bom bom);

    public void deleteBom(int id);

    public void editBom(Bom bom);

    public List<Bom> searchBom(String name);

}
